package xian.woniuxy.be.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ContactrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ContactrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReIdIsNull() {
            addCriterion("re_id is null");
            return (Criteria) this;
        }

        public Criteria andReIdIsNotNull() {
            addCriterion("re_id is not null");
            return (Criteria) this;
        }

        public Criteria andReIdEqualTo(Integer value) {
            addCriterion("re_id =", value, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdNotEqualTo(Integer value) {
            addCriterion("re_id <>", value, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdGreaterThan(Integer value) {
            addCriterion("re_id >", value, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("re_id >=", value, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdLessThan(Integer value) {
            addCriterion("re_id <", value, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdLessThanOrEqualTo(Integer value) {
            addCriterion("re_id <=", value, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdIn(List<Integer> values) {
            addCriterion("re_id in", values, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdNotIn(List<Integer> values) {
            addCriterion("re_id not in", values, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdBetween(Integer value1, Integer value2) {
            addCriterion("re_id between", value1, value2, "reId");
            return (Criteria) this;
        }

        public Criteria andReIdNotBetween(Integer value1, Integer value2) {
            addCriterion("re_id not between", value1, value2, "reId");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNull() {
            addCriterion("cus_id is null");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNotNull() {
            addCriterion("cus_id is not null");
            return (Criteria) this;
        }

        public Criteria andCusIdEqualTo(Integer value) {
            addCriterion("cus_id =", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotEqualTo(Integer value) {
            addCriterion("cus_id <>", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThan(Integer value) {
            addCriterion("cus_id >", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cus_id >=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThan(Integer value) {
            addCriterion("cus_id <", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThanOrEqualTo(Integer value) {
            addCriterion("cus_id <=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdIn(List<Integer> values) {
            addCriterion("cus_id in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotIn(List<Integer> values) {
            addCriterion("cus_id not in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdBetween(Integer value1, Integer value2) {
            addCriterion("cus_id between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cus_id not between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andReDateIsNull() {
            addCriterion("re_date is null");
            return (Criteria) this;
        }

        public Criteria andReDateIsNotNull() {
            addCriterion("re_date is not null");
            return (Criteria) this;
        }

        public Criteria andReDateEqualTo(Date value) {
            addCriterion("re_date =", value, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateNotEqualTo(Date value) {
            addCriterion("re_date <>", value, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateGreaterThan(Date value) {
            addCriterion("re_date >", value, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateGreaterThanOrEqualTo(Date value) {
            addCriterion("re_date >=", value, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateLessThan(Date value) {
            addCriterion("re_date <", value, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateLessThanOrEqualTo(Date value) {
            addCriterion("re_date <=", value, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateIn(List<Date> values) {
            addCriterion("re_date in", values, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateNotIn(List<Date> values) {
            addCriterion("re_date not in", values, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateBetween(Date value1, Date value2) {
            addCriterion("re_date between", value1, value2, "reDate");
            return (Criteria) this;
        }

        public Criteria andReDateNotBetween(Date value1, Date value2) {
            addCriterion("re_date not between", value1, value2, "reDate");
            return (Criteria) this;
        }

        public Criteria andReAddrIsNull() {
            addCriterion("re_addr is null");
            return (Criteria) this;
        }

        public Criteria andReAddrIsNotNull() {
            addCriterion("re_addr is not null");
            return (Criteria) this;
        }

        public Criteria andReAddrEqualTo(String value) {
            addCriterion("re_addr =", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrNotEqualTo(String value) {
            addCriterion("re_addr <>", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrGreaterThan(String value) {
            addCriterion("re_addr >", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrGreaterThanOrEqualTo(String value) {
            addCriterion("re_addr >=", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrLessThan(String value) {
            addCriterion("re_addr <", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrLessThanOrEqualTo(String value) {
            addCriterion("re_addr <=", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrLike(String value) {
            addCriterion("re_addr like", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrNotLike(String value) {
            addCriterion("re_addr not like", value, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrIn(List<String> values) {
            addCriterion("re_addr in", values, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrNotIn(List<String> values) {
            addCriterion("re_addr not in", values, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrBetween(String value1, String value2) {
            addCriterion("re_addr between", value1, value2, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReAddrNotBetween(String value1, String value2) {
            addCriterion("re_addr not between", value1, value2, "reAddr");
            return (Criteria) this;
        }

        public Criteria andReSummaryIsNull() {
            addCriterion("re_summary is null");
            return (Criteria) this;
        }

        public Criteria andReSummaryIsNotNull() {
            addCriterion("re_summary is not null");
            return (Criteria) this;
        }

        public Criteria andReSummaryEqualTo(String value) {
            addCriterion("re_summary =", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryNotEqualTo(String value) {
            addCriterion("re_summary <>", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryGreaterThan(String value) {
            addCriterion("re_summary >", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryGreaterThanOrEqualTo(String value) {
            addCriterion("re_summary >=", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryLessThan(String value) {
            addCriterion("re_summary <", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryLessThanOrEqualTo(String value) {
            addCriterion("re_summary <=", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryLike(String value) {
            addCriterion("re_summary like", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryNotLike(String value) {
            addCriterion("re_summary not like", value, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryIn(List<String> values) {
            addCriterion("re_summary in", values, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryNotIn(List<String> values) {
            addCriterion("re_summary not in", values, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryBetween(String value1, String value2) {
            addCriterion("re_summary between", value1, value2, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReSummaryNotBetween(String value1, String value2) {
            addCriterion("re_summary not between", value1, value2, "reSummary");
            return (Criteria) this;
        }

        public Criteria andReDetailIsNull() {
            addCriterion("re_detail is null");
            return (Criteria) this;
        }

        public Criteria andReDetailIsNotNull() {
            addCriterion("re_detail is not null");
            return (Criteria) this;
        }

        public Criteria andReDetailEqualTo(String value) {
            addCriterion("re_detail =", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailNotEqualTo(String value) {
            addCriterion("re_detail <>", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailGreaterThan(String value) {
            addCriterion("re_detail >", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailGreaterThanOrEqualTo(String value) {
            addCriterion("re_detail >=", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailLessThan(String value) {
            addCriterion("re_detail <", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailLessThanOrEqualTo(String value) {
            addCriterion("re_detail <=", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailLike(String value) {
            addCriterion("re_detail like", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailNotLike(String value) {
            addCriterion("re_detail not like", value, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailIn(List<String> values) {
            addCriterion("re_detail in", values, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailNotIn(List<String> values) {
            addCriterion("re_detail not in", values, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailBetween(String value1, String value2) {
            addCriterion("re_detail between", value1, value2, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReDetailNotBetween(String value1, String value2) {
            addCriterion("re_detail not between", value1, value2, "reDetail");
            return (Criteria) this;
        }

        public Criteria andReRemaikIsNull() {
            addCriterion("re_remaik is null");
            return (Criteria) this;
        }

        public Criteria andReRemaikIsNotNull() {
            addCriterion("re_remaik is not null");
            return (Criteria) this;
        }

        public Criteria andReRemaikEqualTo(String value) {
            addCriterion("re_remaik =", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikNotEqualTo(String value) {
            addCriterion("re_remaik <>", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikGreaterThan(String value) {
            addCriterion("re_remaik >", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikGreaterThanOrEqualTo(String value) {
            addCriterion("re_remaik >=", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikLessThan(String value) {
            addCriterion("re_remaik <", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikLessThanOrEqualTo(String value) {
            addCriterion("re_remaik <=", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikLike(String value) {
            addCriterion("re_remaik like", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikNotLike(String value) {
            addCriterion("re_remaik not like", value, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikIn(List<String> values) {
            addCriterion("re_remaik in", values, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikNotIn(List<String> values) {
            addCriterion("re_remaik not in", values, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikBetween(String value1, String value2) {
            addCriterion("re_remaik between", value1, value2, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReRemaikNotBetween(String value1, String value2) {
            addCriterion("re_remaik not between", value1, value2, "reRemaik");
            return (Criteria) this;
        }

        public Criteria andReStatusIsNull() {
            addCriterion("re_status is null");
            return (Criteria) this;
        }

        public Criteria andReStatusIsNotNull() {
            addCriterion("re_status is not null");
            return (Criteria) this;
        }

        public Criteria andReStatusEqualTo(String value) {
            addCriterion("re_status =", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusNotEqualTo(String value) {
            addCriterion("re_status <>", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusGreaterThan(String value) {
            addCriterion("re_status >", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusGreaterThanOrEqualTo(String value) {
            addCriterion("re_status >=", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusLessThan(String value) {
            addCriterion("re_status <", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusLessThanOrEqualTo(String value) {
            addCriterion("re_status <=", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusLike(String value) {
            addCriterion("re_status like", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusNotLike(String value) {
            addCriterion("re_status not like", value, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusIn(List<String> values) {
            addCriterion("re_status in", values, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusNotIn(List<String> values) {
            addCriterion("re_status not in", values, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusBetween(String value1, String value2) {
            addCriterion("re_status between", value1, value2, "reStatus");
            return (Criteria) this;
        }

        public Criteria andReStatusNotBetween(String value1, String value2) {
            addCriterion("re_status not between", value1, value2, "reStatus");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}